package com.demo.pattern.abstractFactory;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2022-05-13 7:15
 * @Description: AbstractFactoryDemo$
 */
public class AbstractFactoryDemo {
	public static void main(String[] args) {
		ComputerFactory factory = new DellComputerFactory();
		factory.createMouse().sayHi();
		factory.createKeyboard().sayHello();

		factory = new HpComputerFactory();
		factory.createMouse().sayHi();
		factory.createKeyboard().sayHello();
	}
}
